﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MiniBug.Entity.Bug>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <table>
        <tr>
            <th></th>
            <th>
                Title
            </th>
            <th>
                Description
            </th>
            <th>
                Status
            </th>
            <th>
                Priority
            </th>
            <th>
                Category
            </th>
            <th>
                Assigned To
            </th>
        </tr>


    <% foreach (var item in Model)
       { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id = item.idProject })%> |
                <%: Html.ActionLink("Details", "Details", new { id = item.idProject })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id = item.idProject })%>
            </td>
            <td>
                <%: item.Title%>
            </td>
            <td>
                <%: item.Description%>
            </td>
               <td>
                <%: item.Status.Label%>
            </td>
               <td>
                <%: item.Priority.Label%>
            </td>
               <td>
                <%: item.Category.Label%>
            </td>
               <td>
                <%: item.AssignedTo.Name%>
            </td>
        </tr>  
           <%  } %> 
    </table>   
    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

 
</asp:Content>

